package com.cml.dm.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface DynamicSqlMapper extends BaseMapper {

    @Select("${sql}")
    public List<Map<String,Object>> queryList(@Param("sql") String sql);

    @Update("${sql}")
    int update(@Param("sql")String sql);
}
